home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / ContentModel$2$MyVisitor2.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.1 KB  |  28 lines

  1. package com.extensibility.xml;
  2.  
  3. class ContentModel$2$MyVisitor2 implements ContentModelTerm.Visitor {
  4.    // $FF: synthetic field
  5.    final String val$occurance;
  6.    // $FF: synthetic field
  7.    final ContentModel this$0;
  8.    int toFind;
  9.    ContentModelTerm found;
  10.  
  11.    ContentModel$2$MyVisitor2(String var1, ContentModel var2, int var3) {
  12.       this.val$occurance = var1;
  13.       this.this$0 = var2;
  14.       this.toFind = var3;
  15.    }
  16.  
  17.    ContentModelTerm getFoundTerm() {
  18.       return this.found;
  19.    }
  20.  
  21.    public void visit(ContentModelTerm var1) {
  22.       if (var1.isGroup() && var1.getOccuranceAsString(true, true, true).equals(this.val$occurance) && --this.toFind == 0) {
  23.          this.found = var1;
  24.       }
  25.  
  26.    }
  27. }
  28.